<!DOCTYPE html>
<!--
  Copyright 2018 Google Inc.

  Permission is hereby granted, free of charge, to any person obtaining a copy
  of this software and associated documentation files (the "Software"), to deal
  in the Software without restriction, including without limitation the rights
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  copies of the Software, and to permit persons to whom the Software is
  furnished to do so, subject to the following conditions:

  The above copyright notice and this permission notice shall be included in
  all copies or substantial portions of the Software.

  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  THE SOFTWARE.
-->
<html>
  <head>
    <meta charset="utf-8">
    <title>Image List - Material Components Catalog</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" type="image/png" href="/images/logo_components_color_2x_web_48dp.png">
    <link rel="stylesheet" href="/assets/image-list.css">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto+Mono">
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500">
    <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
    <script src="/ready.js"></script>
  </head>
  <body class="mdc-typography">
    <header class="mdc-toolbar mdc-toolbar--fixed">
      <div class="mdc-toolbar__row">
        <section class="mdc-toolbar__section mdc-toolbar__section--align-start">
          <a href="/" class="catalog-back mdc-toolbar__menu-icon"><i class="material-icons">&#xE5C4;</i></a>
          <span class="mdc-toolbar__title catalog-title">Image List</span>
        </section>
      </div>
    </header>
    <main>
      <div class="mdc-toolbar-fixed-adjust"></div>
      <section class="hero">
        <ul class="mdc-image-list hero-image-list">
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <div class="mdc-image-list__image"></div>
            </div>
          </li>
        </ul>
      </section>

      <section class="example">
        <div dir="ltr">
          <div>
            <div class="mdc-form-field">
              <div class="mdc-checkbox">
                <input type="checkbox" class="mdc-checkbox__native-control" id="toggle-rtl" aria-labelledby="toggle-rtl-label" />
                <div class="mdc-checkbox__background">
                  <svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
                    <path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59" />
                  </svg>
                  <div class="mdc-checkbox__mixedmark"></div>
                </div>
              </div>
              <label for="toggle-rtl" id="toggle-rtl-label">Toggle RTL</label>
            </div>
          </div>
          <div>
            <div class="mdc-form-field">
              <div class="mdc-checkbox">
                <input type="checkbox" class="mdc-checkbox__native-control" id="toggle-radius" aria-labelledby="toggle-radius-label" />
                <div class="mdc-checkbox__background">
                  <svg class="mdc-checkbox__checkmark" viewBox="0 0 24 24">
                    <path class="mdc-checkbox__checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59" />
                  </svg>
                  <div class="mdc-checkbox__mixedmark"></div>
                </div>
              </div>
              <label for="toggle-radius" id="toggle-radius-label">Toggle Rounded Corners</label>
            </div>
          </div>
        </div>

        <h1 class="mdc-typography--headline5">Standard Image List</h1>
        <div>
          <div class="mdc-form-field">
            <div class="mdc-radio">
              <input class="mdc-radio__native-control" type="radio" id="standard-label-below" name="standard-labels" checked>
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label for="standard-label-below">Labels below images</label>
          </div>
          <div class="mdc-form-field">
            <div class="mdc-radio">
              <input class="mdc-radio__native-control" type="radio" id="standard-label-protected" name="standard-labels">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label for="standard-label-protected">Labels over images with text protection</label>
          </div>
          <div class="mdc-form-field">
            <div class="mdc-radio">
              <input class="mdc-radio__native-control" type="radio" id="standard-label-none" name="standard-labels">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label for="standard-label-none">No labels</label>
          </div>
        </div>
        <ul id="standard-image-list" class="mdc-image-list standard-image-list">
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/1.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/2.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/3.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/4.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/5.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/6.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/7.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/8.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/9.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/10.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/11.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/12.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/13.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/14.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <div class="mdc-image-list__image-aspect-container">
              <img class="mdc-image-list__image" src="images/photos/3x2/15.jpg">
            </div>
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
        </ul>

        <h1 class="mdc-typography--headline5">Masonry Image List</h1>
        <div>
          <div class="mdc-form-field">
            <div class="mdc-radio">
              <input class="mdc-radio__native-control" type="radio" id="masonry-label-below" name="masonry-labels" checked>
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label for="masonry-label-below">Labels below images</label>
          </div>
          <div class="mdc-form-field">
            <div class="mdc-radio">
              <input class="mdc-radio__native-control" type="radio" id="masonry-label-protected" name="masonry-labels">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label for="masonry-label-protected">Labels over images with text protection</label>
          </div>
          <div class="mdc-form-field">
            <div class="mdc-radio">
              <input class="mdc-radio__native-control" type="radio" id="masonry-label-none" name="masonry-labels">
              <div class="mdc-radio__background">
                <div class="mdc-radio__outer-circle"></div>
                <div class="mdc-radio__inner-circle"></div>
              </div>
            </div>
            <label for="masonry-label-none">No labels</label>
          </div>
        </div>
        <ul id="masonry-image-list" class="mdc-image-list mdc-image-list--masonry masonry-image-list">
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/16.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/1.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/1.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/2.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/3.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/2.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/4.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/3.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/5.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/4.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/6.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/5.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/2x3/7.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/6.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
          <li class="mdc-image-list__item">
            <img class="mdc-image-list__image" src="images/photos/3x2/7.jpg">
            <div class="mdc-image-list__supporting">
              <span class="mdc-image-list__label">Text label</span>
            </div>
          </li>
        </ul>
      </section>
    </main>

    <script src="/assets/material-components-web.js" async></script>
    <script>
      demoReady(function() {
        [].forEach.call(document.querySelectorAll('.mdc-form-field'), function(el) {
          var formField = mdc.formField.MDCFormField.attachTo(el);
          var inputEl = el.querySelector('.mdc-checkbox, .mdc-radio');
          var input = inputEl.classList.contains('mdc-checkbox') ?
            mdc.checkbox.MDCCheckbox.attachTo(inputEl) : mdc.radio.MDCRadio.attachTo(inputEl);
          formField.input = input;
        });

        document.getElementById('toggle-rtl').addEventListener('change', function() {
          document.body.setAttribute('dir', this.checked ? 'rtl' : 'ltr');
        });

        document.getElementById('toggle-radius').addEventListener('change', function() {
          document.querySelector('.example').classList[this.checked ? 'add' : 'remove']('rounded-corners');
        });

        var standardImageListEl = document.getElementById('standard-image-list');
        var masonryImageListEl = document.getElementById('masonry-image-list');

        document.getElementById('standard-label-below').addEventListener('change', function() {
          standardImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
          standardImageListEl.classList[this.checked ? 'remove' : 'add']('hide-supporting');
        });

        document.getElementById('standard-label-protected').addEventListener('change', function() {
          standardImageListEl.classList[this.checked ? 'add' : 'remove']('mdc-image-list--with-text-protection');
          standardImageListEl.classList[this.checked ? 'remove' : 'add']('hide-supporting');
        });

        document.getElementById('standard-label-none').addEventListener('change', function() {
          standardImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
          standardImageListEl.classList[this.checked ? 'add' : 'remove']('hide-supporting');
        });

        document.getElementById('masonry-label-below').addEventListener('change', function() {
          masonryImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
          masonryImageListEl.classList[this.checked ? 'remove' : 'add']('hide-supporting');
        });

        document.getElementById('masonry-label-protected').addEventListener('change', function() {
          masonryImageListEl.classList[this.checked ? 'add' : 'remove']('mdc-image-list--with-text-protection');
          masonryImageListEl.classList[this.checked ? 'remove' : 'add']('hide-supporting');
        });

        document.getElementById('masonry-label-none').addEventListener('change', function() {
          masonryImageListEl.classList[this.checked ? 'remove' : 'add']('mdc-image-list--with-text-protection');
          masonryImageListEl.classList[this.checked ? 'add' : 'remove']('hide-supporting');
        });
      });
    </script>
  </body>
</html>
